import axios from "../utils/my_axios";

//http://192.168.2.46:8081/cm-boss
const userApi = {
    Login: "/boss/passport/login",
    MnLogin: "/boss/passport/setSystemId",
    Logout: "/boss/passport/logout",
    UserInfo: "/boss/pms/admin/getInfo",
};

export function login(parameter){
    return axios({
        url: userApi.Login,
        method: "post",
        data: parameter,
    });
}

export function MnLogin(){
    return axios({
        url: userApi.MnLogin,
        method: "get",
    });
}